package com.lagou.edu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

/**
 * @author: chenLiGuo
 * @create: 2020-11-13 10:44
 **/
@Controller
@RequestMapping("/login")
public class LoginController {

    @RequestMapping("/toLogin")
    public ModelAndView login(HttpServletRequest request, HttpServletResponse response, String username, String password) throws Exception {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("login");
        return modelAndView;
    }

    @RequestMapping("/toList")
    public ModelAndView toList () {
        return new ModelAndView("list");
    }


}